home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / fl / video / ConnectClient.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  1.0 KB  |  48 lines

  1. package fl.video
  2. {
  3.    import flash.net.NetConnection;
  4.    
  5.    use namespace flvplayback_internal;
  6.    
  7.    public class ConnectClient
  8.    {
  9.        
  10.       
  11.       public var connIndex:uint;
  12.       
  13.       public var nc:NetConnection;
  14.       
  15.       public var pending:Boolean;
  16.       
  17.       public var owner:NCManager;
  18.       
  19.       public function ConnectClient(param1:NCManager, param2:NetConnection, param3:uint = 0)
  20.       {
  21.          super();
  22.          this.owner = param1;
  23.          this.nc = param2;
  24.          this.connIndex = param3;
  25.          this.pending = false;
  26.       }
  27.       
  28.       public function onBWCheck(... rest) : Number
  29.       {
  30.          return ++owner.flvplayback_internal::_payload;
  31.       }
  32.       
  33.       public function onBWDone(... rest) : void
  34.       {
  35.          var _loc2_:Number = NaN;
  36.          if(rest.length > 0)
  37.          {
  38.             _loc2_ = Number(rest[0]);
  39.          }
  40.          owner.flvplayback_internal::onConnected(nc,_loc2_);
  41.       }
  42.       
  43.       public function close() : void
  44.       {
  45.       }
  46.    }
  47. }
  48.